AddGroup Method (Report Object)—RDC Object Model

The AddGroup Method adds a group to the report. ConditionField indicates the field for grouping, Condition indicates a change in a field value that generates a grouping, and SortDirection specifies the direction in which groups are sorted.

Syntax
Sub AddGroup (GroupNumber As Integer, pConditionField As Object,
    Condition As CRGroupCondition, SortDirection As CRSortDirection)
Parameters

Parameter Description

GroupNumber

Specifies the number of the group to be added (the position of the group in relation to existing groups). For example, to add a group to the first position, set GroupNumber=1.

pConditionField

Specifies the field to be grouped. The field can be a database field definition object or the field name

condition

CRGroupCondition. Specifies CRGroupCondition (see table below) indicating the grouping condition (that is, group on any value).

SortDirection

CRSortDirection. Specifies the sort direction for the group.    



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com